import {post} from './index';
interface loginForm {
  userName: string;
  password: string;
}
export const login = (data: loginForm) => {
  return post('/login', data)
}
export const register = (data: loginForm) => {
  return post('/register', data)
}